package utiles.net
{
	public class QProtocol
	{
		private var _type:int = 0;
		private var _body:Object = null;

		/**
		 * @param value
		 */		
		public function set body(value:Object):void
		{
			_body = value;
		}

		public function get body():Object
		{
			return _body;
		}

		/**
		 * @return 协议号
		 */
		public function get type():int
		{
			return _type;
		}

		public function set type(value:int):void
		{
			_type = value;
		}
		
		
		/**
		 事件名称
		 */
		public static const NAME_PRE:String = "ProtoCode_";
		public static function getName(protoCode:int):String
		{
			return NAME_PRE + protoCode;
		}
	}
}